package com.yincb;

import com.yincb.config.AppConfig;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


/**
 * TODO
 *
 * @author yincb
 * @version 1.0
 * @date 2021/8/28
 */
public class Test {

    // log4j  import org.apache.log4j.Logger;
//    private static Logger logger = Logger.getLogger(Test.class);

    // JUL java.util.logging.Logger
    // private static Logger logger = Logger.getLogger(Test.class.getName());

    // JCL 日志门面，不直接记录日志,他是通过第三方记录日志(jul、log4j)
    // 如果使用jcl来记录日志,优先使用log4j记录日志,没有Log4j的情况下使用jul
    // import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory;
    // private static Log logger = LogFactory.getLog(Test.class);

    // slf4j日志门面 ==>  log4j2   http://www.slf4j.org/
    private static Logger logger = LoggerFactory.getLogger(Test.class);


    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        logger.info("===> xxxxxxxxxxx");
        applicationContext.start();
    }

}
